package com.basic.modules.ykf.service.impl;

import cn.hutool.core.bean.BeanUtil;
import com.basic.common.utils.ParamsModel;
import com.basic.common.utils.ParamUtils;
import com.basic.modules.ykf.dao.FaHotelsRecordDao;
import com.basic.modules.ykf.entity.FaHotelsRecordEntity;
import com.basic.modules.ykf.service.FaHotelsRecordService;
import org.springframework.stereotype.Service;

import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.basic.common.utils.PageUtils;
import com.basic.common.utils.Query;



@Service("faHotelsRecordService")
public class FaHotelsRecordServiceImpl extends ServiceImpl<FaHotelsRecordDao, FaHotelsRecordEntity> implements FaHotelsRecordService {

//    @Override
//    public PageUtils queryPage(ParamsModel<FaHotelsRecordEntity> params) {
//        QueryWrapper<FaHotelsRecordEntity> queryWrapper = ParamUtils.createQueryWrapperBySort(params);
//        IPage<FaHotelsRecordEntity> page = this.page(
//                new Query<FaHotelsRecordEntity>().getPage(BeanUtil.beanToMap(params.getPage())),
//                queryWrapper
//        );
//        return new PageUtils(page);
//    }

}
